﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Laba1
{   //практическое задание
    public class PracticalTask:Task
    {
        private DateTime _deadline;
        private PrincipleOfRatingByDate _principleOfRating; 

        public PracticalTask(int maximumRating, int passingRating, string name, DateTime deadline, PrincipleOfRatingByDate principleOfRatingByDate): base(name,passingRating , maximumRating)
        {
            _deadline = deadline;
            _principleOfRating = principleOfRatingByDate;
        }
        //добавить новый срок-оценку
/*        public void AddRatingByDate(DateTime date, int rating)
        {
            _RaitingByDate.Add(date,rating);
        }*/

        public DateTime Deadline
        {
            get { return _deadline; }
        }

        //рекомендуемая оценка за срок на сегодняший день
/*        public int GetPossibleRating()
        {
            for (int i = 0; i < _RaitingByDate.getCount(); i++ )
            {
                if(DateTime.Now.CompareTo(_RaitingByDate.GetDateById(i))<=0)
                {
                    return _RaitingByDate.GetRatingById(i);
                }
            }
            return 0;
        }*/
    }
}
